﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using T.Common.Domain.Common;

namespace RedDragon.Common.Domain.Process
{
    /// <summary>
    /// 工艺路线
    /// </summary>
    public class ProcessRoutes : BaseEntity
    {
        /// <summary>
        /// 工艺路线序号
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]//IsPrimaryKey 主键 IsIdentity 自增
        public int ProcessRouteId { get; set; }

        /// <summary>
        /// 工艺编码
        /// </summary>
        [SugarColumn(ColumnDataType = "NVarchar(100)")]//设置长度
        public string ProcessRouteNo { get; set; }

        /// <summary>
        /// 工艺名称
        /// </summary>
        [SugarColumn(ColumnDataType = "NVarchar(50)")]//设置长度
        public string ProcessRouteName { get; set; }

        /// <summary>
        /// 工艺版本
        /// </summary>
        [SugarColumn(ColumnDataType = "NVarchar(50)")]//设置长度
        public string ProcessVersion { get; set; }

        /// <summary>
        /// 工艺描述
        /// </summary>
        [SugarColumn(ColumnDataType = "NVarchar(200)")]//设置长度
        public string ProcessDesc { get; set; }

        /// <summary>
        /// 物流
        /// </summary>
        public int MaterialId { get; set; }

        /// <summary>
        /// 状态 1-有效 2-无效
        /// </summary>
        public int ProcessStatus { get; set; }

        /// <summary>
        /// 审核状态 1-未提交 2-已提交 3-已审批 4-已驳回
        /// </summary>
        public int AuditStatus { get; set; }

        /// <summary>
        /// 是否删除 1-已删除 2-未删除
        /// </summary>
        public int IsDeleted { get; set; }
    }
}
